home *** CD-ROM | disk | FTP | other *** search
- global gCurrentList, glAlphabet, gRenameListName, gDialogAction, glPFListNames
-
- on mouseUp me
- gRenameListName = EMPTY
- if gCurrentList = EMPTY then
- exit
- end if
- gDialogAction = #RenameList
- setUpResponseDialog("Rename List")
- runResponseDialog()
- if (gRenameListName = EMPTY) or (gRenameListName = VOID) then
- abort()
- end if
- set the stageColor to the stageColor
- repeat with x = 1 to gRenameListName.char.count
- if getOne(glAlphabet, gRenameListName.char[x]) = 0 then
- alert("File and list names must contain only alphabetic characters and numbers without spaces. Please reenter.")
- abort()
- end if
- end repeat
- if gRenameListName.char.count > 31 then
- alert("List names may not be longer than 31 characters.")
- abort()
- end if
- repeat with y = 1 to glPFListNames.count
- if symbol(gRenameListName) = symbol(getAt(glPFListNames, y)) then
- alert("The name is in use. Please select another.")
- abort()
- end if
- end repeat
- RenameAList()
- UpdatePersonalFileData()
- WritePersonalFileNoDialog()
- member("PFlist").text = gCurrentList
- end
-